<?php 

class Index extends CI_Controller{

	public function __construct()
	{
		parent::__construct();
		//登录校验
		$this->common->check_login();

		$this->user_info = $this->user->get_user_info_id($_SESSION['user']['id']);
	}

	//个人中心首页
	public function index()
	{
		$this->load->model ( 'notice_model' );
		
		$data['result'] = $this->notice_model->notice_list ();

		$data['left'] = $this->load->view('left', '', TRUE);

		$data['menu'] = $this->load->view('menu', '', TRUE);

		$data['user'] = $this->user_info;
		
		$this->load->view('index',$data);
	}
}